package com.examples.gateway.listener;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.time.LocalDateTime;

/**
 * @ClassName: OperateLogEvent
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/6/20
 * @Version: 1.0
 */
@Getter
@Setter
public class OperateLogEvent extends ApplicationEvent {

    private static final long serialVersionUID = -5523810698516117667L;

    private Long userId;

    private String userType;

    private String menuCode;

    private String serviceName;

    private String requestMethod;

    private String requestUrl;

    private String userIp;

    private LocalDateTime startTime;

    private Long duration;

    private Integer resultCode;
    public OperateLogEvent(Object source) {
        super(source);
    }

}
